Fixes to get libc++ building on sun solaris. Patch from C Bergstrom. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@222794 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/__locale b/include/__locale index 5ccd795..4711620 100644 --- a/include/__locale +++ b/include/__locale
@@ -29,8 +29,10 @@ # if __ANDROID_API__ <= 20 # include <support/android/locale_bionic.h> # endif +#elif defined(__sun__) +# include <support/solaris/xlocale.h> #elif (defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) \ - || defined(__sun__) || defined(__EMSCRIPTEN__) || defined(__IBMCPP__)) + || defined(__EMSCRIPTEN__) || defined(__IBMCPP__)) # include <xlocale.h> #endif // __GLIBC__ || __APPLE__ || __FreeBSD__ || __sun__ || __EMSCRIPTEN__ || __IBMCPP__